package com.ruoyi.system.Fdongbei.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.TbYcXxqk;
import com.ruoyi.system.Fdongbei.mapper.TbYcXxqkMapper;
import com.ruoyi.system.Fdongbei.service.ITbYcXxqkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 异常接收Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-23
 */
@Service
@DataSource(value = DataSourceType.LY002_L)
public class TbYcXxqkServiceImpl implements ITbYcXxqkService
{
    @Autowired
    private TbYcXxqkMapper tbYcXxqkMapper;

    /**
     * 查询异常接收
     * 
     * @param id 异常接收主键
     * @return 异常接收
     */
    @Override
    public TbYcXxqk selectTbYcXxqkById(Long id)
    {
        return tbYcXxqkMapper.selectTbYcXxqkById(id);
    }

    /**
     * 查询异常接收列表
     * 
     * @param tbYcXxqk 异常接收
     * @return 异常接收
     */
    @Override
    public List<TbYcXxqk> selectTbYcXxqkList(TbYcXxqk tbYcXxqk)
    {
        return tbYcXxqkMapper.selectTbYcXxqkList(tbYcXxqk);
    }


    /**
     * 查询异常接收列表
     *
     * @param tbYcXxqk 异常接收
     * @return 异常接收
     */
    @Override
    public List<TbYcXxqk> selectTbYcXxqkListwc(TbYcXxqk tbYcXxqk)
    {
        return tbYcXxqkMapper.selectTbYcXxqkListwc(tbYcXxqk);
    }

    /**
     * 新增异常接收
     * 
     * @param tbYcXxqk 异常接收
     * @return 结果
     */
    @Override
    public int insertTbYcXxqk(TbYcXxqk tbYcXxqk)
    {
        return tbYcXxqkMapper.insertTbYcXxqk(tbYcXxqk);
    }

    /**
     * 修改异常接收
     * 
     * @param tbYcXxqk 异常接收
     * @return 结果
     */
    @Override
    public int updateTbYcXxqk(TbYcXxqk tbYcXxqk)
    {
        return tbYcXxqkMapper.updateTbYcXxqk(tbYcXxqk);
    }

    /**
     * 批量删除异常接收
     * 
     * @param ids 需要删除的异常接收主键
     * @return 结果
     */
    @Override
    public int deleteTbYcXxqkByIds(Long[] ids)
    {
        return tbYcXxqkMapper.deleteTbYcXxqkByIds(ids);
    }

    /**
     * 删除异常接收信息
     * 
     * @param id 异常接收主键
     * @return 结果
     */
    @Override
    public int deleteTbYcXxqkById(Long id)
    {
        return tbYcXxqkMapper.deleteTbYcXxqkById(id);
    }
}
